


package com.UMLife.me.action;

import com.UMLife.me.global.Global;
import com.UMLife.me.ui.TipsUI;
import de.enough.polish.ui.Command;
import de.enough.polish.ui.CommandListener;
import de.enough.polish.ui.Displayable;





public class TipsAction implements CommandListener
{
	public TipsAction(TipsUI ui)
	{
		this.ui = ui;
		this.cmdBack = Global.getCmdBack();
		ui.addCommand(this.cmdBack);
	}
	
	public void commandAction(Command c, Displayable d)
	{
		if (c == this.cmdBack)
		{
			Global.getGlobalDisplay().setCurrent(Global.getQuestionUI());
		}
		
	}
	
	private Command	cmdBack;
	
	private TipsUI	ui;
	
}
